package com.sgroupware.modules.car;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * CartInfor entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "car_infor")
public class CarInfor implements java.io.Serializable {

	// Fields

	private Long id;
	private String model;
	private String plateNumber;
	private String engineNumber;
	private Integer mileage;
	private Date yearCarefulDate;
	private String insure;
	private Date insureExpireTime;
	private String problem;
	private Double maintainCost;

	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "model", nullable = false)
	public String getModel() {
		return this.model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	@Column(name = "plateNumber", nullable = false)
	public String getPlateNumber() {
		return this.plateNumber;
	}

	public void setPlateNumber(String plateNumber) {
		this.plateNumber = plateNumber;
	}

	@Column(name = "engineNumber", nullable = false)
	public String getEngineNumber() {
		return this.engineNumber;
	}

	public void setEngineNumber(String engineNumber) {
		this.engineNumber = engineNumber;
	}

	@Column(name = "mileage", nullable = false)
	public Integer getMileage() {
		return this.mileage;
	}

	public void setMileage(Integer mileage) {
		this.mileage = mileage;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "yearCarefulDate", nullable = false, length = 10)
	public Date getYearCarefulDate() {
		return this.yearCarefulDate;
	}

	public void setYearCarefulDate(Date yearCarefulDate) {
		this.yearCarefulDate = yearCarefulDate;
	}

	@Column(name = "insure")
	public String getInsure() {
		return this.insure;
	}

	public void setInsure(String insure) {
		this.insure = insure;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "insureExpireTime", nullable = false, length = 10)
	public Date getInsureExpireTime() {
		return this.insureExpireTime;
	}

	public void setInsureExpireTime(Date insureExpireTime) {
		this.insureExpireTime = insureExpireTime;
	}

	@Column(name = "problem", length = 1000)
	public String getProblem() {
		return this.problem;
	}

	public void setProblem(String problem) {
		this.problem = problem;
	}

	@Column(name = "maintainCost", nullable = false, precision = 2, scale = 0)
	public Double getMaintainCost() {
		return this.maintainCost;
	}

	public void setMaintainCost(Double maintainCost) {
		this.maintainCost = maintainCost;
	}

}